//
//  NSArray+Log.m
//  CC
//
//  Created by Calvin on 5/13/15.
//  Copyright (c) 2015 Calvin. All rights reserved.
//

#import "NSArray+Log.h"

@implementation NSArray (Log)
-(NSString *)descriptionWithLocale:(id)locale
{
    NSMutableString *str =[NSMutableString string];
    [str appendString:@"{\n"];
    
    [self enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
        [str appendFormat:@"%@,\n",obj];
    }];
    
    [str appendString:@"}"];
    
    NSRange range = [str rangeOfString:@"," options:NSBackwardsSearch];
    if (range.length) {
        [str deleteCharactersInRange:range];
    }
    return str;
}
@end
